<h1>Listing locations</h1>

<table>
  <tr>
    <th>Locationname</th>
    <th>Locationdescription</th>
    <th>Addressname</th>
    <th>Addressln1</th>
    <th>Addressln2</th>
    <th>City</th>
    <th>Statecode</th>
    <th>Zipcode</th>
    <th>Gmapstring</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @locations.each do |location| %>
  <tr>
    <td><%= location.locationName %></td>
    <td><%= location.locationDescription %></td>
    <td><%= location.addressName %></td>
    <td><%= location.addressLn1 %></td>
    <td><%= location.addressLn2 %></td>
    <td><%= location.city %></td>
    <td><%= location.stateCode %></td>
    <td><%= location.zipCode %></td>
    <td><%= location.gmapString %></td>
    <td><%= link_to 'Show', location %></td>
    <td><%= link_to 'Edit', edit_location_path(location) %></td>
    <td><%= link_to 'Destroy', location, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Location', new_location_path %>
